package live.zs.panache;

import io.quarkus.hibernate.orm.panache.PanacheEntity;
import jakarta.persistence.Cacheable;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;

/**
 * @author madison
 * @description
 * @date 2022/2/5 17:56
 */
@Entity
@Cacheable
public class FruitEntity extends PanacheEntity {
    @Column(length = 40, unique = true)
    public String name;

    public FruitEntity() {
    }

    public FruitEntity(String name) {
        this.name = name;
    }
}
